package com.atguigu.gulimall.member.service;

import com.atguigu.common.model.SocialUser;
import com.atguigu.gulimall.member.exception.MobilePhoneExistException;
import com.atguigu.gulimall.member.exception.UserNameExistException;
import com.atguigu.gulimall.member.vo.MemberRegistryVo;
import com.atguigu.gulimall.member.vo.MemberLoginVo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.member.entity.MemberEntity;

import java.util.Map;

/**
 * 会员
 *
 * @author glh
 * @email 2889535252@gmail.com
 * @date 2022-02-10 15:50:44
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void registry(MemberRegistryVo memberRegistryVo) throws UserNameExistException, MobilePhoneExistException;

    MemberEntity login(MemberLoginVo memberLoginVo);

    MemberEntity login(SocialUser socialUser) throws Exception;
}

